const Url = {
  getFaceH5: `/applet/best-sign-h5/get-h5-face-url`,
  getFaceMiniprogram: `/applet/best-sign-h5/best-sign-face`,
  getFaceResult: `/applet/best-sign-h5/get-face-auth-result`,
  userFaceResult: `/applet/best-sign-h5/get-face-result`,
  getSignUrl: `/applet/best-sign-h5/get-sign-url`,
  bestNotify: `/applet/best-sign-h5/sync-notify`,
  renewNotify: `/applet/best-sign-h5-renew/sync-notify`,
}

// 人脸识别 h5
export const getFaceH5 = (params) => uni.$uv.http.get(Url.getFaceH5, { params, custom: { showLoading: true } })

// 小程序版人脸识别
export const getFaceMiniprogram = (params) => uni.$uv.http.get(Url.getFaceMiniprogram, { params, custom: { showLoading: true } })

// 人脸识别结果
export const getFaceResult = (params) => uni.$uv.http.post(Url.getFaceResult, params, { custom: { showLoading: true } })

// 用户实名认证 人脸识别结果
export const userFaceResult = (params) => uni.$uv.http.post(Url.userFaceResult, params, { custom: { showLoading: true } })

// 获取签约合同
export const getSignUrl = (params) => uni.$uv.http.get(Url.getSignUrl, { params, custom: { showLoading: true, loadingMsg: '生成合同中', showMessage: true } })

// 获取签字（签完字之后回调信息里面有参数）
export const bestNotify = (params) => uni.$uv.http.get(Url.bestNotify, { params, custom: { showLoading: true, showMessage: true } })

// 续签上上签同步查询接口
export const renewNotify = (params) => uni.$uv.http.get(Url.renewNotify, { params, custom: { showLoading: true } })
